<?php use_helper('Javascript'); ?>

<?php $post = $posts[0]; ?>

<div class="yui-t3">
<div class="yui-main">
<div class="yui-b">
<div id="main-container"><!-- wrapper -->
<div class="yui-g" id="main-image">
    <?php echo image_tag('/uploads/large/'.$post->getFile(), array('alt' => __('Screenshot'))); ?>
    <?php /*
    <?php $image = 'http://blogallery/'.myTools::getUploadDir($random->getUser(), 'large').$random->getFile(); ?>
    <div class="image" style="background: #ffffff url(<?php echo $image; ?>) no-repeat center center;">
    </div>
    */ ?>
</div>

<div class="yui-g" id="features">
  <div class="yui-g first">
    <div class="yui-u first">
       <?php echo link_to_remote(
                  image_tag(myTools::getUploadDir($post->getUser(), 'small').$post->getFile(), array('class' => 'image', 'alt' => __('Screenshot'))),
                  array(
                    'url' => '@default?module=post&action=image&size=home&id='.$post->getId(),
                    'update' => 'main-image'
                  ),
                  array()
                  ); ?>
    </div>
    
<?php $post = $posts[1]; ?>
    
    <div class="yui-u">
       <?php echo link_to_remote(
                  image_tag(myTools::getUploadDir($post->getUser(), 'small').$post->getFile(), array('class' => 'image', 'alt' => __('Screenshot'))),
                  array(
                    'url' => '@default?module=post&action=image&size=home&id='.$post->getId(),
                    'update' => 'main-image'
                  ),
                  array()
                  ); ?>
    </div>
  </div>
    
<?php $post = $posts[2]; ?>
    
  <div class="yui-g">
    <div class="yui-u first">
       <?php echo link_to_remote(
                  image_tag(myTools::getUploadDir($post->getUser(), 'small').$post->getFile(), array('class' => 'image', 'alt' => __('Screenshot'))),
                  array(
                    'url' => '@default?module=post&action=image&size=home&id='.$post->getId(),
                    'update' => 'main-image'
                  ),
                  array()
                  ); ?>
    </div>
    
<?php $post = $posts[3]; ?>
    
    <div class="yui-u">
       <?php echo link_to_remote(
                  image_tag(myTools::getUploadDir($post->getUser(), 'small').$post->getFile(), array('class' => 'image', 'alt' => __('Screenshot'))),
                  array(
                    'url' => '@default?module=post&action=image&size=home&id='.$post->getId(),
                    'update' => 'main-image'
                  ),
                  array()
                  ); ?>
    </div>
  </div>
</div>

</div>
</div><!-- wrapper -->
</div>

<div class="yui-b">
  <div class="yui-g">
    <div class="image" style="background: #ffffff url(<?php echo $image; ?>) no-repeat center center;">
    <?php echo image_tag(myTools::getUploadDir($user, 'small').$user->getFile(), array('alt' => __('Screenshot'))); ?>
    </div>
    <div class="image">
      <?php echo $user->getAbout(); ?>
    </div>
  </div>
</div>
</div>
